package main

import "fmt"

type person struct {
	name string
	age  int
	sex  string
}

type student struct {
	*person
	id    int
	score float64
}

func main() {
	var stu student

	a := person{"zs", 19, "男"}

	stu.person = &a
	stu.id = 1
	stu.score = 99

	fmt.Println(stu)

	fmt.Println((*(stu.person)).name)
	fmt.Println(stu.person.name)
}
